package syntaxTree.stm;

import syntaxTree.exp.*;
import syntaxTree.id.*;
public class stmIdExp extends stm{			//  -> id = exp
	id id;
	exp e;
	public stmIdExp(id id, exp e)
	{
		this.preS = new stmInit();
		this.id = id;
		this.e = e;		
	}
	public stmIdExp(stm s1, id id, exp e)
	{
		this.preS = s1;
		this.id = id;
		this.e = e;
	}
	public String toString()
	{
		return (preS.toString()+id.toString()+"="+e.toString()+";\n");
	}
	public String toC()
	{
		return (preS.toC()+id.toC()+"="+e.toC()+";\n");
	}
}
